home *** CD-ROM | disk | FTP | other *** search
- FLUSH(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- FFLLUUSSHH - Writes data buffered by Fortran output statements to a file
-
- SSYYNNOOPPSSIISS
- UNICOS and UNICOS/mk systems:
- CCAALLLL FFLLUUSSHH((_i_u_n_i_t))
-
- CCAALLLL FFLLUUSSHH((_i_u_n_i_t,,[[_i_s_t_a_t]]
-
- IRIX systems:
- CCAALLLL FFLLUUSSHH((_i_u_n_i_t,, _i_s_t_a_t))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- FFLLUUSSHH writes to a file any buffered data previously written by Fortran
- output statements. FFLLUUSSHH may be called after reading or writing. The
- current file position is not changed.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX, all arguments must be of default kind
- unless documented otherwise. On UNICOS and UNICOS/mk, default kind is
- KKIINNDD==88 for integer, real, complex, and logical arguments; on IRIX, the
- default kind is KKIINNDD==44.
-
- This routine has the following arguments:
-
- _i_u_n_i_t Integer variable, expression, or constant containing a
- Fortran unit number. If this value is 101, it flushes the
- unit which is connected to standard output.
-
- _i_s_t_a_t Integer variable or array element that receives the return
- status as follows:
-
- ==00 Indicates that all buffered data, if any, was flushed.
- A file that was immediately read, or a file with a
- buffer that has not changed since the last flush, might
- return a 0 status even though no new data would be
- written to the file.
-
- --11 Indicates that the Fortran unit does not support FFLLUUSSHH,
- and no data was written to the file.
-
- >>00 Indicates that an error condition was encountered. The
- specific error number is returned. Use the eexxppllaaiinn(1)
- command for a description of the error code.
-
- The _i_s_t_a_t argument is optional on UNICOS systems; the user program is
- aborted if FFLLUUSSHH is called without _i_s_t_a_t and an error condition is
- encountered.
-
- NNOOTTEESS
- If FFLLUUSSHH is called with an unconnected unit, an error condition
- results. Calling FFLLUUSSHH for a file for which the program does not have
- write permission returns a 0 status if no data was written to that
- file previously with Fortran I/O statements.
-
- A WWRRIITTEE I/O statement with an asterisk unit identifier (or a PPRRIINNTT
- statement) uses unit 101. See IINNTTRROO__IIOO(3F) for more information.
-
- SSEEEE AALLSSOO
- eexxppllaaiinn(1) in the _U_N_I_C_O_S _U_s_e_r _C_o_m_m_a_n_d_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
- SR-2011 to see a description of the error code.
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-